3.7.69 \(\int \frac {x^{-1+3 n}}{(a+b x^n) (c+d x^n)} \, dx\)

Optimal. Leaf size=71 \[ \frac {a^2 \log \left (a+b x^n\right )}{b^2 n (b c-a d)}-\frac {c^2 \log \left (c+d x^n\right )}{d^2 n (b c-a d)}+\frac {x^n}{b d n} \]

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {446, 72} \begin {gather*} \frac {a^2 \log \left (a+b x^n\right )}{b^2 n (b c-a d)}-\frac {c^2 \log \left (c+d x^n\right )}{d^2 n (b c-a d)}+\frac {x^n}{b d n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-1 + 3*n)/((a + b*x^n)*(c + d*x^n)),x]

[Out]

x^n/(b*d*n) + (a^2*Log[a + b*x^n])/(b^2*(b*c - a*d)*n) - (c^2*Log[c + d*x^n])/(d^2*(b*c - a*d)*n)

Rule 72

Int[((e_.) + (f_.)*(x_))^(p_.)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Int[ExpandIntegrand[(
e + f*x)^p/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IntegerQ[p]

Rule 446

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rubi steps

\begin {align*} \int \frac {x^{-1+3 n}}{\left (a+b x^n\right ) \left (c+d x^n\right )} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^2}{(a+b x) (c+d x)} \, dx,x,x^n\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {1}{b d}+\frac {a^2}{b (b c-a d) (a+b x)}+\frac {c^2}{d (-b c+a d) (c+d x)}\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {x^n}{b d n}+\frac {a^2 \log \left (a+b x^n\right )}{b^2 (b c-a d) n}-\frac {c^2 \log \left (c+d x^n\right )}{d^2 (b c-a d) n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.11, size = 66, normalized size = 0.93 \begin {gather*} \frac {\frac {a^2 \log \left (a+b x^n\right )}{b^2 (b c-a d)}-\frac {c^2 \log \left (c+d x^n\right )}{d^2 (b c-a d)}+\frac {x^n}{b d}}{n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + 3*n)/((a + b*x^n)*(c + d*x^n)),x]

[Out]

(x^n/(b*d) + (a^2*Log[a + b*x^n])/(b^2*(b*c - a*d)) - (c^2*Log[c + d*x^n])/(d^2*(b*c - a*d)))/n

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.07, size = 70, normalized size = 0.99 \begin {gather*} \frac {a^2 \log \left (a+b x^n\right )}{b^2 n (b c-a d)}+\frac {c^2 \log \left (c+d x^n\right )}{d^2 n (a d-b c)}+\frac {x^n}{b d n} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[x^(-1 + 3*n)/((a + b*x^n)*(c + d*x^n)),x]

[Out]

x^n/(b*d*n) + (a^2*Log[a + b*x^n])/(b^2*(b*c - a*d)*n) + (c^2*Log[c + d*x^n])/(d^2*(-(b*c) + a*d)*n)

________________________________________________________________________________________

fricas [A]  time = 0.46, size = 74, normalized size = 1.04 \begin {gather*} \frac {a^{2} d^{2} \log \left (b x^{n} + a\right ) - b^{2} c^{2} \log \left (d x^{n} + c\right ) + {\left (b^{2} c d - a b d^{2}\right )} x^{n}}{{\left (b^{3} c d^{2} - a b^{2} d^{3}\right )} n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+3*n)/(a+b*x^n)/(c+d*x^n),x, algorithm="fricas")

[Out]

(a^2*d^2*log(b*x^n + a) - b^2*c^2*log(d*x^n + c) + (b^2*c*d - a*b*d^2)*x^n)/((b^3*c*d^2 - a*b^2*d^3)*n)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{3 \, n - 1}}{{\left (b x^{n} + a\right )} {\left (d x^{n} + c\right )}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+3*n)/(a+b*x^n)/(c+d*x^n),x, algorithm="giac")

[Out]

integrate(x^(3*n - 1)/((b*x^n + a)*(d*x^n + c)), x)

________________________________________________________________________________________

maple [A]  time = 0.10, size = 78, normalized size = 1.10 \begin {gather*} -\frac {a^{2} \ln \left (b \,{\mathrm e}^{n \ln \relax (x )}+a \right )}{\left (a d -b c \right ) b^{2} n}+\frac {c^{2} \ln \left (d \,{\mathrm e}^{n \ln \relax (x )}+c \right )}{\left (a d -b c \right ) d^{2} n}+\frac {{\mathrm e}^{n \ln \relax (x )}}{b d n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(3*n-1)/(b*x^n+a)/(d*x^n+c),x)

[Out]

1/b/d/n*exp(n*ln(x))+c^2/d^2/n/(a*d-b*c)*ln(d*exp(n*ln(x))+c)-a^2/(a*d-b*c)/b^2/n*ln(b*exp(n*ln(x))+a)

________________________________________________________________________________________

maxima [A]  time = 0.63, size = 81, normalized size = 1.14 \begin {gather*} \frac {a^{2} \log \left (\frac {b x^{n} + a}{b}\right )}{b^{3} c n - a b^{2} d n} - \frac {c^{2} \log \left (\frac {d x^{n} + c}{d}\right )}{b c d^{2} n - a d^{3} n} + \frac {x^{n}}{b d n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+3*n)/(a+b*x^n)/(c+d*x^n),x, algorithm="maxima")

[Out]

a^2*log((b*x^n + a)/b)/(b^3*c*n - a*b^2*d*n) - c^2*log((d*x^n + c)/d)/(b*c*d^2*n - a*d^3*n) + x^n/(b*d*n)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^{3\,n-1}}{\left (a+b\,x^n\right )\,\left (c+d\,x^n\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(3*n - 1)/((a + b*x^n)*(c + d*x^n)),x)

[Out]

int(x^(3*n - 1)/((a + b*x^n)*(c + d*x^n)), x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+3*n)/(a+b*x**n)/(c+d*x**n),x)

[Out]

Exception raised: HeuristicGCDFailed

________________________________________________________________________________________